package com.liuyao;


import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.debug.*;

public class calendar extends B4AClass.ImplB4AClass implements BA.SubDelegator{
    private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
    private void innerInitialize(BA _ba) throws Exception {
        if (ba == null) {
            ba = new  anywheresoftware.b4a.ShellBA("com.liuyao", "com.liuyao.calendar", this);
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            ba.htSubs = htSubs;
             if (BA.isShellModeRuntimeCheck(ba)) {
			    ba.raiseEvent2(null, true, "CREATE", true, "com.liuyao.calendar",
                    ba);
				return;
		    }
        }
        ba.raiseEvent2(null, true, "class_globals", false);
    }

 
    public void  innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
        innerInitialize(_ba);
    }
    public Object callSub(String sub, Object sender, Object[] args) throws Exception {
        return BA.SubDelegator.SubNotFound;
    }
public anywheresoftware.b4a.keywords.Common __c = null;
public int[] _lunarinfo = null;
public int[] _solarmonth = null;
public String[] _stiangan = null;
public String[] _sdizhi = null;
public String[] _sanimals = null;
public String[] _ssolarterm = null;
public String[] _sterminfo = null;
public String[] _nstr1 = null;
public String[] _nstr2 = null;
public String[] _nstr3 = null;
public com.liuyao.main _main = null;
public String  _initialize(com.liuyao.calendar __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="calendar";
RDebugUtils.currentLine=8;
 //BA.debugLineNum = 8;BA.debugLine="Public Sub Initialize";
RDebugUtils.currentLine=11;
 //BA.debugLineNum = 11;BA.debugLine="lunarInfo=Array As Int(0x04bd8,0x04ae0,0x0a570,0x";
__ref._lunarinfo = new int[]{(int) (0x04bd8),(int) (0x04ae0),(int) (0x0a570),(int) (0x054d5),(int) (0x0d260),(int) (0x0d950),(int) (0x16554),(int) (0x056a0),(int) (0x09ad0),(int) (0x055d2),(int) (0x04ae0),(int) (0x0a5b6),(int) (0x0a4d0),(int) (0x0d250),(int) (0x1d255),(int) (0x0b540),(int) (0x0d6a0),(int) (0x0ada2),(int) (0x095b0),(int) (0x14977),(int) (0x04970),(int) (0x0a4b0),(int) (0x0b4b5),(int) (0x06a50),(int) (0x06d40),(int) (0x1ab54),(int) (0x02b60),(int) (0x09570),(int) (0x052f2),(int) (0x04970),(int) (0x06566),(int) (0x0d4a0),(int) (0x0ea50),(int) (0x06e95),(int) (0x05ad0),(int) (0x02b60),(int) (0x186e3),(int) (0x092e0),(int) (0x1c8d7),(int) (0x0c950),(int) (0x0d4a0),(int) (0x1d8a6),(int) (0x0b550),(int) (0x056a0),(int) (0x1a5b4),(int) (0x025d0),(int) (0x092d0),(int) (0x0d2b2),(int) (0x0a950),(int) (0x0b557),(int) (0x06ca0),(int) (0x0b550),(int) (0x15355),(int) (0x04da0),(int) (0x0a5b0),(int) (0x14573),(int) (0x052b0),(int) (0x0a9a8),(int) (0x0e950),(int) (0x06aa0),(int) (0x0aea6),(int) (0x0ab50),(int) (0x04b60),(int) (0x0aae4),(int) (0x0a570),(int) (0x05260),(int) (0x0f263),(int) (0x0d950),(int) (0x05b57),(int) (0x056a0),(int) (0x096d0),(int) (0x04dd5),(int) (0x04ad0),(int) (0x0a4d0),(int) (0x0d4d4),(int) (0x0d250),(int) (0x0d558),(int) (0x0b540),(int) (0x0b6a0),(int) (0x195a6),(int) (0x095b0),(int) (0x049b0),(int) (0x0a974),(int) (0x0a4b0),(int) (0x0b27a),(int) (0x06a50),(int) (0x06d40),(int) (0x0af46),(int) (0x0ab60),(int) (0x09570),(int) (0x04af5),(int) (0x04970),(int) (0x064b0),(int) (0x074a3),(int) (0x0ea50),(int) (0x06b58),(int) (0x055c0),(int) (0x0ab60),(int) (0x096d5),(int) (0x092e0),(int) (0x0c960),(int) (0x0d954),(int) (0x0d4a0),(int) (0x0da50),(int) (0x07552),(int) (0x056a0),(int) (0x0abb7),(int) (0x025d0),(int) (0x092d0),(int) (0x0cab5),(int) (0x0a950),(int) (0x0b4a0),(int) (0x0baa4),(int) (0x0ad50),(int) (0x055d9),(int) (0x04ba0),(int) (0x0a5b0),(int) (0x15176),(int) (0x052b0),(int) (0x0a930),(int) (0x07954),(int) (0x06aa0),(int) (0x0ad50),(int) (0x05b52),(int) (0x04b60),(int) (0x0a6e6),(int) (0x0a4e0),(int) (0x0d260),(int) (0x0ea65),(int) (0x0d530),(int) (0x05aa0),(int) (0x076a3),(int) (0x096d0),(int) (0x04bd7),(int) (0x04ad0),(int) (0x0a4d0),(int) (0x1d0b6),(int) (0x0d250),(int) (0x0d520),(int) (0x0dd45),(int) (0x0b5a0),(int) (0x056d0),(int) (0x055b2),(int) (0x049b0),(int) (0x0a577),(int) (0x0a4b0),(int) (0x0aa50),(int) (0x1b255),(int) (0x06d20),(int) (0x0ada0),(int) (0x14b63),(int) (0x09370),(int) (0x049f8),(int) (0x04970),(int) (0x064b0),(int) (0x168a6),(int) (0x0ea50),(int) (0x06b20),(int) (0x1a6c4),(int) (0x0aae0),(int) (0x0a2e0),(int) (0x0d2e3),(int) (0x0c960),(int) (0x0d557),(int) (0x0d4a0),(int) (0x0da50),(int) (0x05d55),(int) (0x056a0),(int) (0x0a6d0),(int) (0x055d4),(int) (0x052d0),(int) (0x0a9b8),(int) (0x0a950),(int) (0x0b4a0),(int) (0x0b6a6),(int) (0x0ad50),(int) (0x055a0),(int) (0x0aba4),(int) (0x0a5b0),(int) (0x052b0),(int) (0x0b273),(int) (0x06930),(int) (0x07337),(int) (0x06aa0),(int) (0x0ad50),(int) (0x14b55),(int) (0x04b60),(int) (0x0a570),(int) (0x054e4),(int) (0x0d160),(int) (0x0e968),(int) (0x0d520),(int) (0x0daa0),(int) (0x16aa6),(int) (0x056d0),(int) (0x04ae0),(int) (0x0a9d4),(int) (0x0a2d0),(int) (0x0d150),(int) (0x0f252),(int) (0x0d520)};
RDebugUtils.currentLine=12;
 //BA.debugLineNum = 12;BA.debugLine="solarMonth=Array As Int(31,28,31,30,31,30,31,31,3";
__ref._solarmonth = new int[]{(int) (31),(int) (28),(int) (31),(int) (30),(int) (31),(int) (30),(int) (31),(int) (31),(int) (30),(int) (31),(int) (30),(int) (31)};
RDebugUtils.currentLine=13;
 //BA.debugLineNum = 13;BA.debugLine="sTiangan=Array As String(\"甲\", \"乙\", \"丙\", \"丁\", \"戊\",";
__ref._stiangan = new String[]{"甲","乙","丙","丁","戊","己","庚","辛","壬","癸"};
RDebugUtils.currentLine=14;
 //BA.debugLineNum = 14;BA.debugLine="sDizhi=Array As String(\"子\", \"丑\", \"寅\", \"卯\", \"辰\", \"";
__ref._sdizhi = new String[]{"子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"};
RDebugUtils.currentLine=15;
 //BA.debugLineNum = 15;BA.debugLine="sAnimals=Array As String(\"鼠\",\"牛\",\"虎\",\"兔\",\"龙\",\"蛇\",";
__ref._sanimals = new String[]{"鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"};
RDebugUtils.currentLine=16;
 //BA.debugLineNum = 16;BA.debugLine="sSolarTerm=Array As String(\"小寒\",\"大寒\",\"立春\",\"雨水\",\"惊";
__ref._ssolarterm = new String[]{"小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"};
RDebugUtils.currentLine=17;
 //BA.debugLineNum = 17;BA.debugLine="sTermInfo=Array As String(\"9778397bd097c36b0b6fc9";
__ref._sterminfo = new String[]{"9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"};
RDebugUtils.currentLine=18;
 //BA.debugLineNum = 18;BA.debugLine="nStr1=Array As String(\"日\",\"一\",\"二\",\"三\",\"四\",\"五\",\"六\"";
__ref._nstr1 = new String[]{"日","一","二","三","四","五","六","七","八","九","十"};
RDebugUtils.currentLine=19;
 //BA.debugLineNum = 19;BA.debugLine="nStr2=Array As String(\"初\",\"十\",\"廿\",\"卅\")";
__ref._nstr2 = new String[]{"初","十","廿","卅"};
RDebugUtils.currentLine=20;
 //BA.debugLineNum = 20;BA.debugLine="nStr3=Array As String(\"正\",\"一\",\"二\",\"三\",\"四\",\"五\",\"六\"";
__ref._nstr3 = new String[]{"正","一","二","三","四","五","六","七","八","九","十","冬","腊"};
RDebugUtils.currentLine=22;
 //BA.debugLineNum = 22;BA.debugLine="End Sub";
return "";
}
public int  _lyeardays(com.liuyao.calendar __ref,int _y) throws Exception{
__ref = this;
RDebugUtils.currentModule="calendar";
int _sum = 0;
int _i = 0;
RDebugUtils.currentLine=23;
 //BA.debugLineNum = 23;BA.debugLine="public Sub lYearDays(y As Int) As Int";
RDebugUtils.currentLine=24;
 //BA.debugLineNum = 24;BA.debugLine="Dim sum As Int=348";
_sum = (int) (348);
RDebugUtils.currentLine=25;
 //BA.debugLineNum = 25;BA.debugLine="Dim i As Int=32768'0x8000";
_i = (int) (32768);
RDebugUtils.currentLine=26;
 //BA.debugLineNum = 26;BA.debugLine="Do While i>8";
while (_i>8) {
RDebugUtils.currentLine=28;
 //BA.debugLineNum = 28;BA.debugLine="Log(Bit.and(lunarInfo(y-1900),i))";
__c.Log(BA.NumberToString(__c.Bit.And(__ref._lunarinfo[(int) (_y-1900)],_i)));
RDebugUtils.currentLine=29;
 //BA.debugLineNum = 29;BA.debugLine="If Bit.And(lunarInfo(y-1900),i)=0 Then sum=sum+1";
if (__c.Bit.And(__ref._lunarinfo[(int) (_y-1900)],_i)==0) { 
_sum = (int) (_sum+1);};
RDebugUtils.currentLine=30;
 //BA.debugLineNum = 30;BA.debugLine="i=Bit.ShiftRight(i,1)";
_i = __c.Bit.ShiftRight(_i,(int) (1));
 }
;
RDebugUtils.currentLine=32;
 //BA.debugLineNum = 32;BA.debugLine="Log(sum)";
__c.Log(BA.NumberToString(_sum));
RDebugUtils.currentLine=33;
 //BA.debugLineNum = 33;BA.debugLine="Return sum";
if (true) return _sum;
RDebugUtils.currentLine=34;
 //BA.debugLineNum = 34;BA.debugLine="End Sub";
return 0;
}
}